package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class OOSDemoZUOYE {
    public static void main(String[] args) throws IOException {
        String name="邱昱程";
        int age =24;
        String gender="性别";
        String[]otherinfo={"是一名时长两年半的个人练习生，喜欢唱跳rap，篮球"};
        Student qyc=new Student(name,age,gender,otherinfo);
        System.out.println(qyc);

        FileOutputStream fos=new FileOutputStream("fos.tx");
        ObjectOutputStream oos=new ObjectOutputStream(fos);
        oos.writeObject(qyc);
        System.out.println("ok");
    }
}
